<?php /* Smarty version Smarty-3.1.18, created on 2015-09-22 15:18:49
         compiled from "E:\www\gfour\ws\Admin\View\Chat\group_list.html" */ ?>
<?php /*%%SmartyHeaderCode:3254855ffd2b16b3be8-03998865%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c278e0cb43b51114ebdf8cc39c4b30565f510d35' => 
    array (
      0 => 'E:\\www\\gfour\\ws\\Admin\\View\\Chat\\group_list.html',
      1 => 1442904672,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3254855ffd2b16b3be8-03998865',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_55ffd2b176f419_10720705',
  'variables' => 
  array (
    '_C' => 0,
    'group_list' => 0,
    'group' => 0,
    'group_list_page' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_55ffd2b176f419_10720705')) {function content_55ffd2b176f419_10720705($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'E:\\www\\gfour\\ws\\Qiaqia\\Vendor\\Smarty\\plugins\\modifier.date_format.php';
?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/detail/default.css" />
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/detail/component.css" />
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/hy.admin.css"/>
		<script src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/detail/modernizr.custom.js"></script>
		
	</head>
	<body>
		<div class="am-g">
			 <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

			 	
      <div class="am-u-md-6 am-cf">
        <div class="am-fl am-cf">
          <div class="am-btn-toolbar am-fl">
            <div class="am-btn-group am-btn-group-xs">
             
			 <button data-title="新建弹框组" data-id="new_group" data-href="index.php?g=admin&m=chat&a=group_content" class="am-btn am-btn-default am-btn-xs am-text-secondary hy-js-href"><span class="am-icon-plus"></span> 新建弹框组</button>
		   
			 </div>
            

           
          </div>
        </div>
      </div>
      <div class="am-u-md-3 am-cf">
        <div class="am-fr">
        </div>
      </div>
      
      <div class="am-g">
      <div class="am-u-sm-12">
        <div class="am-form">
          <table class="am-table am-table-striped am-table-hover hy-table-main">
            <thead>
              <tr>
               <th class="table-title"></th>
                <th class="table-title">序号</th>
                <th class="table-type">弹框组名称</th>
                <th class="table-date">类型</th>
                <th class="table-date">实际参与人数</th>
                <th class="table-date">预计参与人数</th>
                <th class="table-date">创建时间</th>
                <th class="table-set">操作</th>
              </tr>
          </thead>
          <tbody>
          	<?php  $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['group']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['group_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['group']->key => $_smarty_tpl->tpl_vars['group']->value) {
$_smarty_tpl->tpl_vars['group']->_loop = true;
?>
            <tr>
            	<td></td>
              <td><?php echo $_smarty_tpl->tpl_vars['group']->value['id'];?>
</td>
              <td><?php echo $_smarty_tpl->tpl_vars['group']->value['name'];?>
</td>
			   <td><?php if ($_smarty_tpl->tpl_vars['group']->value['type']==1) {?> 个人信息流程 <?php } elseif ($_smarty_tpl->tpl_vars['group']->value['type']==2) {?>中奖流程 <?php } elseif ($_smarty_tpl->tpl_vars['group']->value['type']==3) {?>复合流程 <?php }?></td>
			    <td><?php echo (($tmp = @$_smarty_tpl->tpl_vars['group']->value['joinnums'])===null||$tmp==='' ? 0 : $tmp);?>
</td>
				 <td><?php echo $_smarty_tpl->tpl_vars['group']->value['totalnums'];?>
</td>
              <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['group']->value['addtime'],"Y-m-d H:i:s");?>
</td>
              <td>
                <div class="am-btn-toolbar">
                  <div class="am-btn-group am-btn-group-xs">
                    <button data-title="编辑弹框组<?php echo $_smarty_tpl->tpl_vars['group']->value['name'];?>
" data-id="tule_<?php echo $_smarty_tpl->tpl_vars['group']->value['id'];?>
" data-href="index.php?g=admin&m=chat&a=group_content&id=<?php echo $_smarty_tpl->tpl_vars['group']->value['id'];?>
" class="am-btn am-btn-default am-btn-xs am-text-secondary hy-js-href"><span class="am-icon-pencil-square-o"></span> 编辑</button>
					
                    <button data-param ="{ url:'index.php?g=admin&m=chat&a=del_group&id=<?php echo $_smarty_tpl->tpl_vars['group']->value['id'];?>
',hide:4}" class="am-btn am-btn-default am-btn-xs am-text-danger hy-js-del"><span class="am-icon-trash-o"></span> 删除</button>
                  	<button data-id="addadpos_<?php echo $_smarty_tpl->tpl_vars['group']->value['id'];?>
" data-href="index.php?g=admin&m=chat&a=box_list&id=<?php echo $_smarty_tpl->tpl_vars['group']->value['id'];?>
" type="button" class="am-btn am-btn-default hy-js-href"><span class="am-icon-plus"></span> 弹框内容</button>
				 
				  <button data-id="user_box_<?php echo $_smarty_tpl->tpl_vars['group']->value['id'];?>
" data-href="index.php?g=admin&m=chat&a=box_user_list&group_id=<?php echo $_smarty_tpl->tpl_vars['group']->value['id'];?>
" type="button" class="am-btn am-btn-default hy-js-href"><span class="am-icon-plus"></span> 参与记录</button>
				  
				  </div>
                </div>
              </td>
            </tr>
             <?php } ?> 
          </tbody>
        </table>
          <div class="am-cf">

  <div class="am-fr">
  	<div class="hy_page">
  <?php echo $_smarty_tpl->tpl_vars['group_list_page']->value;?>

  </div>
  </div>
</div>
          <hr />
      
        </div>
      </div>

    </div>
    </div>
   <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

   <div class="md-modal md-effect-1" id="modal-1">
			<div class="md-content">
				<h3>编辑拦截关键词</h3>
				<div>
					<table>
						<tr>
							<td><strong>关键词:</strong></td>
							<td><input value = "" name="keyword" id="keyword" ></input></td>
						</tr>
					</table>
					<div style="height:10px;"></div>
					<div>
						<input value="" name="id" id="id" type="hidden"></input>
					<button onclick="saveKeyword()" style="float: left;margin-left: 65px;">保存</button>
					<button style="	float: right;margin-right: 47px;" class="md-close">关闭</button>
					</div>
				</div>
			</div>
		</div>
   <div class="md-overlay"></div>
		<script src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/detail/classie.js"></script>
		<script src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/detail/modalEffects.js"></script>
		<script>
			// this is important for IEs
			var polyfilter_scriptpath = '<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/detail/';
		</script>
		<script src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/detail/cssParser.js"></script>
		<script src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/detail/css-filters-polyfill.js"></script>
		<script type="text/javascript">
			function saveKeyword(){
				var url="/ws/index.php?g=admin&m=chat&a=saveKeyword";
				var id = $("#id").val();
				var keyword = $("#keyword").val();
				if(keyword==""||keyword==undefined||keyword==null){
					alert("请填写拦截关键词");
					return false;
				}
				var data = {
					"id":id,
					"keyword":keyword
				}
				$.post(url,data,function(res){
					console.info(res);
					if(res.error==0){
						$("#id").val("");
						$("#keyword").val("");
						$(".md-close").click();
						showMsg("成功保存",0);
						window.location.href="/ws/index.php?g=admin&m=chat&a=keyword";
					}
				},"json")
				
			}
		</script>
	</body>
</html>
<?php }} ?>
